<style>
  .submitsearch{
    margin: 0 0 10px 5px;
  }
</style>
<div id="zt-colright" class="span9">
    <div id="zt-colleft-pad">
        <div id="zt-contentwrap" class="row-fluid">
            <div id="zt-content" class="span12">
                <div class="module-color zt-mod-br">
                    <div class="zt-mod-bl">
                        <div class="zt-mod-tr">
                            <div class="zt-mod-tl clearfix">
                                <h3><span><?php echo __('SearchResult',true);?></span></h3>
                                <div class="mod-content">
                                <?php //debug($intros);?>
                                    <div class="custom-color">
                                         <br>
                                          <?php
                                              echo $form->create('SearchIndex', array('url' => array('plugin' => 'searchable', 'controller' => 'search_indexes', 'action' => 'index')));
                                              echo $form->input('term', array('label'=>false,'div'=>false,'placeholder'=>__('Search',true)));
                                              echo $this->Form->submit(__('Searching',true),array('div'=>false,'class'=>'submitsearch'));
                                              echo $this->Form->end();
                                          ?>
                                          </br>
                                          </div>
                                          <?php if (!empty($results)): ?>
                                          <div style="margin-left:5px; margin-right:5px;">
                                            <ul>
                                              <?php foreach ($results as $result) : ?>
                                              <li style='padding-bottom: 5px;margin-bottom: 5px;border-bottom: 1px dotted #cce'>
                                                <h4><?php echo $html->link ($result['SearchIndex']['name'], json_decode($result['SearchIndex']['url'], true)); ?></h4>
                                                <?php if (!empty($result['SearchIndex']['summary'])): ?>
                                                  <p><?php echo $result['SearchIndex']['summary']; ?></p>
                                                <?php else : ?>
                                                  <?php //echo $searchable->snippets($result['SearchIndex']['data']); ?>
                                                <?php endif; ?>
                                              </li>
                                              <?php endforeach; ?>
                                            </ul>
                                            </div>
                                            <?php
                                            $params = array_intersect_key($this->params, array_flip(array('type', 'term')));
                                            $params = array_map('urlencode', $params);
                                            $params = array_map('urlencode', $params);
                                            $paginator->options(array('url' => $params));
                                            ?>
                                            <?php echo $this->element('phantrang');?>
                                          <?php else: ?>
                                            <p><?php echo __('Result',true);?></p>
                                          <?php endif; ?>
                                    </div>
                                   
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>